package com.MedDroid.control;

import com.MedDroid.MainApp;
import com.MedDroid.control.message.Message;
import android.content.Context;

/**
 * Created with IntelliJ IDEA.
 * User: Romen
 * Date: 19/11/13
 * Time: 9:39 PM
 * Description: Acts as an interface between MainActivity and the background service.
 */
public class InterfaceControl extends AbstractControl
{
	public InterfaceControl(MainApp A)
	{
		super(A);
	}

	@Override
	public Message processMessage(Message Msg)
	{
		//On error
		return new Message(this,0,"NULL");
	}

	//METHODS ACCESSIBLE BY ACTIVITY
	public void openApplication()
	{}

	public void closeApplication()
	{}

	public boolean tryLogin(String UserName, String Password)
	{
		//Check with AuthenticationControl
		//Wait for response
		//Return true if Login verified
		//Return false if Login failed
		return false;
	}
}
